package Atest;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;

/**
 * @Author wangzhipeng
 * @Date 2020-10-02 8:47 下午
 * @Description
 */
public class Binary {
    public static void main(String[] args) {
        int[] array = {1, 2, 3, 4, 5, 6, 7, 11, 24, 23, 90, 67};
        Arrays.sort(array);
        System.out.println(Arrays.toString(array));
        int i = Arrays.binarySearch(array, 13);
        System.out.println(i);


    }
}
